<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DesignPattern: C:/96_project/DesignPattern/03_ComplexFactory/DESIGNPATTERN_ComplexFactory.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="DesignPattern.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">DesignPattern
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_c0a467ef20094a80fcd4f305e6e3706d.html">03_ComplexFactory</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">DESIGNPATTERN_ComplexFactory.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="stdafx_8h.html">stdafx.h</a>&quot;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#ifndef CXX_DESIGNPATTERN_COMPLEXFACTORY_H</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8h.html">DESIGNPATTERN_ComplexFactory.h</a>&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#ifndef CXX_COMPLEXFACTORY_H</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_profession_8h.html">Profession.h</a>&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="class_complex_factory.html#adef3934cf4954ec5fa12de17b63437e6">   24</a></span>&#160;<a class="code" href="class_complex_factory.html#a266cebf6b4dfd5cfc5c2365c94fb9348">ComplexFactory::ComplexFactory</a>(<a class="code" href="_product_def_8h.html#af4f386858b1730df6c103acb62cebe68">PROFESSION_TYPE</a> eProfession) :</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    m_eProfession(eProfession)</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;{</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;m_eProfession[%d], Profession[%s]&quot;</span>, <a class="code" href="class_complex_factory.html#a7e9336966271590544dfb1eafc7536a0">m_eProfession</a>, <a class="code" href="_product_def_8h.html#adb0cb8b72b82d01d05b82adbc6a38f2a">STATIC_CONST_STRING_PROFESSION</a>[<a class="code" href="class_complex_factory.html#a7e9336966271590544dfb1eafc7536a0">m_eProfession</a>].c_str());</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;}</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="class_complex_factory.html#a99a257de69ea72cc3301220500e67cee">   36</a></span>&#160;<a class="code" href="class_complex_factory.html#a99a257de69ea72cc3301220500e67cee">ComplexFactory::~ComplexFactory</a>()</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;{</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;m_eProfession[%d], Profession[%s]&quot;</span>, <a class="code" href="class_complex_factory.html#a7e9336966271590544dfb1eafc7536a0">m_eProfession</a>, <a class="code" href="_product_def_8h.html#adb0cb8b72b82d01d05b82adbc6a38f2a">STATIC_CONST_STRING_PROFESSION</a>[<a class="code" href="class_complex_factory.html#a7e9336966271590544dfb1eafc7536a0">m_eProfession</a>].c_str());</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;}</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<a class="code" href="class_profession.html">Profession</a>* </div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="class_complex_factory.html#a183e5ca9c84b6f836871bcf4aa2331aa">   50</a></span>&#160;<a class="code" href="class_complex_factory.html#a183e5ca9c84b6f836871bcf4aa2331aa">ComplexFactory::CreateProfession</a>()</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;{</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="comment">//system error log</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;m_eProfession[%d], Profession[%s]&quot;</span>, <a class="code" href="class_complex_factory.html#a7e9336966271590544dfb1eafc7536a0">m_eProfession</a>, <a class="code" href="_product_def_8h.html#adb0cb8b72b82d01d05b82adbc6a38f2a">STATIC_CONST_STRING_PROFESSION</a>[<a class="code" href="class_complex_factory.html#a7e9336966271590544dfb1eafc7536a0">m_eProfession</a>].c_str());</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;}</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<a class="code" href="_my_self_def_8h.html#a7927e087749615dae3114cc27b91c86d">VOID</a> </div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="class_complex_factory.html#a6769ba71051831e3fbb8e143c4e91377">   65</a></span>&#160;<a class="code" href="class_complex_factory.html#a6769ba71051831e3fbb8e143c4e91377">ComplexFactory::SetComplexFactory</a>(<a class="code" href="_product_def_8h.html#af4f386858b1730df6c103acb62cebe68">PROFESSION_TYPE</a> eProfession)</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;{</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;m_eProfession[%d], Profession[%s]&quot;</span>, <a class="code" href="class_complex_factory.html#a7e9336966271590544dfb1eafc7536a0">m_eProfession</a>, <a class="code" href="_product_def_8h.html#adb0cb8b72b82d01d05b82adbc6a38f2a">STATIC_CONST_STRING_PROFESSION</a>[<a class="code" href="class_complex_factory.html#a7e9336966271590544dfb1eafc7536a0">m_eProfession</a>].c_str());</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <a class="code" href="class_complex_factory.html#a7e9336966271590544dfb1eafc7536a0">m_eProfession</a> = eProfession;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;}</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<a class="code" href="_product_def_8h.html#af4f386858b1730df6c103acb62cebe68">PROFESSION_TYPE</a></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_complex_factory.html#aaf83c4f47e5bf255b9fba1db3271e1be">   78</a></span>&#160;<a class="code" href="class_complex_factory.html#aaf83c4f47e5bf255b9fba1db3271e1be">ComplexFactory::GetComplexFactory</a>()</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;{</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;m_eProfession[%d], Profession[%s]&quot;</span>, <a class="code" href="class_complex_factory.html#a7e9336966271590544dfb1eafc7536a0">m_eProfession</a>, <a class="code" href="_product_def_8h.html#adb0cb8b72b82d01d05b82adbc6a38f2a">STATIC_CONST_STRING_PROFESSION</a>[<a class="code" href="class_complex_factory.html#a7e9336966271590544dfb1eafc7536a0">m_eProfession</a>].c_str());</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_complex_factory.html#a7e9336966271590544dfb1eafc7536a0">m_eProfession</a>;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;}</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160; </div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<a class="code" href="class_warrior_factory.html">WarriorFactory</a>* <a class="code" href="class_warrior_factory.html#a2b535e9f091e1909b09f10bc98eeace2">WarriorFactory::m_pInstance</a> = NULL;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160; </div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="class_warrior_factory.html#a3b879a5e301c0b2fc81b657897199ab3">   92</a></span>&#160;<a class="code" href="class_warrior_factory.html#a3b879a5e301c0b2fc81b657897199ab3">WarriorFactory::WarriorFactory</a>() :</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <a class="code" href="class_complex_factory.html">ComplexFactory</a>(<a class="code" href="_product_def_8h.html#af4f386858b1730df6c103acb62cebe68a2a1ccaa29202c017e27a632ce0b400a2">PROFESSION_WARRIOR</a>)</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;{</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;}</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="class_warrior_factory.html#a1b21673928ab71120218b85bdb009802">  104</a></span>&#160;<a class="code" href="class_warrior_factory.html#a1b21673928ab71120218b85bdb009802">WarriorFactory::~WarriorFactory</a>()</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;{</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;}</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<a class="code" href="class_complex_factory.html">ComplexFactory</a>* </div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="class_warrior_factory.html#ac2974727c2590d33014e468bad60f38c">  117</a></span>&#160;<a class="code" href="class_warrior_factory.html#ac2974727c2590d33014e468bad60f38c">WarriorFactory::Instance</a>()</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;{</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <span class="keywordflow">if</span> (NULL == <a class="code" href="class_warrior_factory.html#a2b535e9f091e1909b09f10bc98eeace2">m_pInstance</a>) {</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;        <a class="code" href="class_warrior_factory.html#a2b535e9f091e1909b09f10bc98eeace2">m_pInstance</a> = <span class="keyword">new</span> <a class="code" href="class_warrior_factory.html#a3b879a5e301c0b2fc81b657897199ab3">WarriorFactory</a>;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    }</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_warrior_factory.html#a2b535e9f091e1909b09f10bc98eeace2">m_pInstance</a>;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;}</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<a class="code" href="_my_self_def_8h.html#a7927e087749615dae3114cc27b91c86d">VOID</a> </div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="class_warrior_factory.html#a9b3b4b66a0498639b0f927323f30237c">  135</a></span>&#160;<a class="code" href="class_warrior_factory.html#a9b3b4b66a0498639b0f927323f30237c">WarriorFactory::Destroy</a>()</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;{</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <span class="keywordflow">if</span> (NULL != <a class="code" href="class_warrior_factory.html#a2b535e9f091e1909b09f10bc98eeace2">m_pInstance</a>) {</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;        <span class="keyword">delete</span> <a class="code" href="class_warrior_factory.html#a2b535e9f091e1909b09f10bc98eeace2">m_pInstance</a>;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        <a class="code" href="class_warrior_factory.html#a2b535e9f091e1909b09f10bc98eeace2">m_pInstance</a> = NULL;</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    }</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;}</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160; </div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<a class="code" href="class_profession.html">Profession</a>* </div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="class_warrior_factory.html#a97a0d27d93adacd4cf3842d95f560acd">  152</a></span>&#160;<a class="code" href="class_warrior_factory.html#a97a0d27d93adacd4cf3842d95f560acd">WarriorFactory::CreateProfession</a>()</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;{</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="class_warrior.html">Warrior</a>;</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;}</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160; </div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<a class="code" href="class_master_factory.html">MasterFactory</a>* <a class="code" href="class_master_factory.html#ad6711f403208af3a6b891e361000c219">MasterFactory::m_pInstance</a> = NULL;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160; </div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160; </div>
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="class_master_factory.html#a3c5c43c2d225e0df42f627643db42a88">  167</a></span>&#160;<a class="code" href="class_master_factory.html#a3c5c43c2d225e0df42f627643db42a88">MasterFactory::MasterFactory</a>() :</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    <a class="code" href="class_complex_factory.html">ComplexFactory</a>(<a class="code" href="_product_def_8h.html#af4f386858b1730df6c103acb62cebe68adda08b98fdfa5c0222093ec202ec8422">PROFESSION_MASTER</a>)</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;{</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;}</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160; </div>
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="class_master_factory.html#a2545bad99f5f47f1868f6acaa6d9f19b">  179</a></span>&#160;<a class="code" href="class_master_factory.html#a2545bad99f5f47f1868f6acaa6d9f19b">MasterFactory::~MasterFactory</a>()</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;{</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;}</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160; </div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<a class="code" href="class_complex_factory.html">ComplexFactory</a>* </div>
<div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="class_master_factory.html#a7871cdd39707117647e62990baa041ac">  192</a></span>&#160;<a class="code" href="class_master_factory.html#a7871cdd39707117647e62990baa041ac">MasterFactory::Instance</a>()</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;{</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    <span class="keywordflow">if</span> (NULL == <a class="code" href="class_master_factory.html#ad6711f403208af3a6b891e361000c219">m_pInstance</a>) {</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        <a class="code" href="class_master_factory.html#ad6711f403208af3a6b891e361000c219">m_pInstance</a> = <span class="keyword">new</span> <a class="code" href="class_master_factory.html#a3c5c43c2d225e0df42f627643db42a88">MasterFactory</a>;</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    }</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_master_factory.html#ad6711f403208af3a6b891e361000c219">m_pInstance</a>;</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;}</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160; </div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160; </div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;<a class="code" href="_my_self_def_8h.html#a7927e087749615dae3114cc27b91c86d">VOID</a> </div>
<div class="line"><a name="l00210"></a><span class="lineno"><a class="line" href="class_master_factory.html#a9de6375d6806755974f1ec856d782dcf">  210</a></span>&#160;<a class="code" href="class_master_factory.html#a9de6375d6806755974f1ec856d782dcf">MasterFactory::Destroy</a>()</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;{</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    <span class="keywordflow">if</span> (NULL != <a class="code" href="class_master_factory.html#ad6711f403208af3a6b891e361000c219">m_pInstance</a>) {</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;        <span class="keyword">delete</span> <a class="code" href="class_master_factory.html#ad6711f403208af3a6b891e361000c219">m_pInstance</a>;</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;        <a class="code" href="class_master_factory.html#ad6711f403208af3a6b891e361000c219">m_pInstance</a> = NULL;</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    }</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;}</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160; </div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;<a class="code" href="class_profession.html">Profession</a>* </div>
<div class="line"><a name="l00227"></a><span class="lineno"><a class="line" href="class_master_factory.html#a247e6906ce1038fd2758b7bf33363350">  227</a></span>&#160;<a class="code" href="class_master_factory.html#a247e6906ce1038fd2758b7bf33363350">MasterFactory::CreateProfession</a>()</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;{</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="class_master.html">Master</a>;</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;}</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160; </div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;<a class="code" href="class_priest_factory.html">PriestFactory</a>* <a class="code" href="class_priest_factory.html#aa7979e42ec9f47af5d2822e153c6881e">PriestFactory::m_pInstance</a> = NULL;</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160; </div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160; </div>
<div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="class_priest_factory.html#a5c2ff9a9f8cc3fdb8c6d73b083391937">  242</a></span>&#160;<a class="code" href="class_priest_factory.html#a5c2ff9a9f8cc3fdb8c6d73b083391937">PriestFactory::PriestFactory</a>() :</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;    <a class="code" href="class_complex_factory.html">ComplexFactory</a>(<a class="code" href="_product_def_8h.html#af4f386858b1730df6c103acb62cebe68a6e6b9c14b0781c4c9096cdc5a58d0f09">PROFESSION_PRIEST</a>)</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;{</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;}</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160; </div>
<div class="line"><a name="l00254"></a><span class="lineno"><a class="line" href="class_priest_factory.html#a48dd860b89ac05ca336db62247da0c04">  254</a></span>&#160;<a class="code" href="class_priest_factory.html#a48dd860b89ac05ca336db62247da0c04">PriestFactory::~PriestFactory</a>()</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;{</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;}</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160; </div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;<a class="code" href="class_complex_factory.html">ComplexFactory</a>*</div>
<div class="line"><a name="l00267"></a><span class="lineno"><a class="line" href="class_priest_factory.html#a1327dae46a7aee6e3d597aed32cd74af">  267</a></span>&#160;<a class="code" href="class_priest_factory.html#a1327dae46a7aee6e3d597aed32cd74af">PriestFactory::Instance</a>()</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;{</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    <span class="keywordflow">if</span> (NULL == <a class="code" href="class_priest_factory.html#aa7979e42ec9f47af5d2822e153c6881e">m_pInstance</a>) {</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;        <a class="code" href="class_priest_factory.html#aa7979e42ec9f47af5d2822e153c6881e">m_pInstance</a> = <span class="keyword">new</span> <a class="code" href="class_priest_factory.html#a5c2ff9a9f8cc3fdb8c6d73b083391937">PriestFactory</a>;</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;    }</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_priest_factory.html#aa7979e42ec9f47af5d2822e153c6881e">m_pInstance</a>;</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;}</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160; </div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160; </div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;<a class="code" href="_my_self_def_8h.html#a7927e087749615dae3114cc27b91c86d">VOID</a></div>
<div class="line"><a name="l00285"></a><span class="lineno"><a class="line" href="class_priest_factory.html#ae08704368fe3ce06d37f6b9bc32e705f">  285</a></span>&#160;<a class="code" href="class_priest_factory.html#ae08704368fe3ce06d37f6b9bc32e705f">PriestFactory::Destroy</a>()</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;{</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;    <span class="keywordflow">if</span> (NULL != <a class="code" href="class_priest_factory.html#aa7979e42ec9f47af5d2822e153c6881e">m_pInstance</a>) {</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;        <span class="keyword">delete</span> <a class="code" href="class_priest_factory.html#aa7979e42ec9f47af5d2822e153c6881e">m_pInstance</a>;</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;        <a class="code" href="class_priest_factory.html#aa7979e42ec9f47af5d2822e153c6881e">m_pInstance</a> = NULL;</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    }</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;}</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160; </div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;<a class="code" href="class_profession.html">Profession</a>*</div>
<div class="line"><a name="l00302"></a><span class="lineno"><a class="line" href="class_priest_factory.html#a3d91327e5fa5a2740cab3446a3e54a13">  302</a></span>&#160;<a class="code" href="class_priest_factory.html#a3d91327e5fa5a2740cab3446a3e54a13">PriestFactory::CreateProfession</a>()</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;{</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="class_priest.html">Priest</a>;</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;}</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;<span class="comment">/* EOF */</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclass_priest_factory_html_a3d91327e5fa5a2740cab3446a3e54a13"><div class="ttname"><a href="class_priest_factory.html#a3d91327e5fa5a2740cab3446a3e54a13">PriestFactory::CreateProfession</a></div><div class="ttdeci">virtual Profession * CreateProfession()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8cpp_source.html#l00302">DESIGNPATTERN_ComplexFactory.cpp:302</a></div></div>
<div class="ttc" id="a_profession_8h_html"><div class="ttname"><a href="_profession_8h.html">Profession.h</a></div><div class="ttdoc">all kinds of Profession</div></div>
<div class="ttc" id="aclass_master_factory_html_a247e6906ce1038fd2758b7bf33363350"><div class="ttname"><a href="class_master_factory.html#a247e6906ce1038fd2758b7bf33363350">MasterFactory::CreateProfession</a></div><div class="ttdeci">virtual Profession * CreateProfession()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8cpp_source.html#l00227">DESIGNPATTERN_ComplexFactory.cpp:227</a></div></div>
<div class="ttc" id="aclass_warrior_factory_html"><div class="ttname"><a href="class_warrior_factory.html">WarriorFactory</a></div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8h_source.html#l00092">DESIGNPATTERN_ComplexFactory.h:92</a></div></div>
<div class="ttc" id="aclass_warrior_factory_html_a1b21673928ab71120218b85bdb009802"><div class="ttname"><a href="class_warrior_factory.html#a1b21673928ab71120218b85bdb009802">WarriorFactory::~WarriorFactory</a></div><div class="ttdeci">virtual ~WarriorFactory()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8cpp_source.html#l00104">DESIGNPATTERN_ComplexFactory.cpp:104</a></div></div>
<div class="ttc" id="aclass_priest_factory_html_a1327dae46a7aee6e3d597aed32cd74af"><div class="ttname"><a href="class_priest_factory.html#a1327dae46a7aee6e3d597aed32cd74af">PriestFactory::Instance</a></div><div class="ttdeci">static ComplexFactory * Instance()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8cpp_source.html#l00267">DESIGNPATTERN_ComplexFactory.cpp:267</a></div></div>
<div class="ttc" id="aclass_complex_factory_html_a183e5ca9c84b6f836871bcf4aa2331aa"><div class="ttname"><a href="class_complex_factory.html#a183e5ca9c84b6f836871bcf4aa2331aa">ComplexFactory::CreateProfession</a></div><div class="ttdeci">virtual Profession * CreateProfession()=0</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8cpp_source.html#l00050">DESIGNPATTERN_ComplexFactory.cpp:50</a></div></div>
<div class="ttc" id="aclass_warrior_factory_html_ac2974727c2590d33014e468bad60f38c"><div class="ttname"><a href="class_warrior_factory.html#ac2974727c2590d33014e468bad60f38c">WarriorFactory::Instance</a></div><div class="ttdeci">static ComplexFactory * Instance()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8cpp_source.html#l00117">DESIGNPATTERN_ComplexFactory.cpp:117</a></div></div>
<div class="ttc" id="a_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8h_html"><div class="ttname"><a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8h.html">DESIGNPATTERN_ComplexFactory.h</a></div><div class="ttdoc">Define an interface for creating an object, and the package object is created</div></div>
<div class="ttc" id="aclass_warrior_factory_html_a3b879a5e301c0b2fc81b657897199ab3"><div class="ttname"><a href="class_warrior_factory.html#a3b879a5e301c0b2fc81b657897199ab3">WarriorFactory::WarriorFactory</a></div><div class="ttdeci">WarriorFactory()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8cpp_source.html#l00092">DESIGNPATTERN_ComplexFactory.cpp:92</a></div></div>
<div class="ttc" id="aclass_priest_factory_html_ae08704368fe3ce06d37f6b9bc32e705f"><div class="ttname"><a href="class_priest_factory.html#ae08704368fe3ce06d37f6b9bc32e705f">PriestFactory::Destroy</a></div><div class="ttdeci">static VOID Destroy()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8cpp_source.html#l00285">DESIGNPATTERN_ComplexFactory.cpp:285</a></div></div>
<div class="ttc" id="aclass_master_factory_html_a2545bad99f5f47f1868f6acaa6d9f19b"><div class="ttname"><a href="class_master_factory.html#a2545bad99f5f47f1868f6acaa6d9f19b">MasterFactory::~MasterFactory</a></div><div class="ttdeci">~MasterFactory()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8cpp_source.html#l00179">DESIGNPATTERN_ComplexFactory.cpp:179</a></div></div>
<div class="ttc" id="aclass_master_html"><div class="ttname"><a href="class_master.html">Master</a></div><div class="ttdef"><b>Definition:</b> <a href="_profession_8h_source.html#l00138">Profession.h:138</a></div></div>
<div class="ttc" id="aclass_priest_factory_html"><div class="ttname"><a href="class_priest_factory.html">PriestFactory</a></div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8h_source.html#l00230">DESIGNPATTERN_ComplexFactory.h:230</a></div></div>
<div class="ttc" id="a_my_self_def_8h_html_a7927e087749615dae3114cc27b91c86d"><div class="ttname"><a href="_my_self_def_8h.html#a7927e087749615dae3114cc27b91c86d">VOID</a></div><div class="ttdeci">void VOID</div><div class="ttdef"><b>Definition:</b> <a href="_my_self_def_8h_source.html#l00011">MySelfDef.h:11</a></div></div>
<div class="ttc" id="aclass_complex_factory_html_a99a257de69ea72cc3301220500e67cee"><div class="ttname"><a href="class_complex_factory.html#a99a257de69ea72cc3301220500e67cee">ComplexFactory::~ComplexFactory</a></div><div class="ttdeci">virtual ~ComplexFactory()=0</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8cpp_source.html#l00036">DESIGNPATTERN_ComplexFactory.cpp:36</a></div></div>
<div class="ttc" id="a_product_def_8h_html_af4f386858b1730df6c103acb62cebe68a6e6b9c14b0781c4c9096cdc5a58d0f09"><div class="ttname"><a href="_product_def_8h.html#af4f386858b1730df6c103acb62cebe68a6e6b9c14b0781c4c9096cdc5a58d0f09">PROFESSION_PRIEST</a></div><div class="ttdef"><b>Definition:</b> <a href="_product_def_8h_source.html#l00016">ProductDef.h:16</a></div></div>
<div class="ttc" id="aclass_complex_factory_html_a7e9336966271590544dfb1eafc7536a0"><div class="ttname"><a href="class_complex_factory.html#a7e9336966271590544dfb1eafc7536a0">ComplexFactory::m_eProfession</a></div><div class="ttdeci">PROFESSION_TYPE m_eProfession</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8h_source.html#l00088">DESIGNPATTERN_ComplexFactory.h:88</a></div></div>
<div class="ttc" id="astdafx_8h_html"><div class="ttname"><a href="stdafx_8h.html">stdafx.h</a></div></div>
<div class="ttc" id="aclass_priest_html"><div class="ttname"><a href="class_priest.html">Priest</a></div><div class="ttdef"><b>Definition:</b> <a href="_profession_8h_source.html#l00189">Profession.h:189</a></div></div>
<div class="ttc" id="aclass_complex_factory_html_aaf83c4f47e5bf255b9fba1db3271e1be"><div class="ttname"><a href="class_complex_factory.html#aaf83c4f47e5bf255b9fba1db3271e1be">ComplexFactory::GetComplexFactory</a></div><div class="ttdeci">PROFESSION_TYPE GetComplexFactory()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8cpp_source.html#l00078">DESIGNPATTERN_ComplexFactory.cpp:78</a></div></div>
<div class="ttc" id="aclass_warrior_factory_html_a97a0d27d93adacd4cf3842d95f560acd"><div class="ttname"><a href="class_warrior_factory.html#a97a0d27d93adacd4cf3842d95f560acd">WarriorFactory::CreateProfession</a></div><div class="ttdeci">virtual Profession * CreateProfession()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8cpp_source.html#l00152">DESIGNPATTERN_ComplexFactory.cpp:152</a></div></div>
<div class="ttc" id="aclass_master_factory_html_a3c5c43c2d225e0df42f627643db42a88"><div class="ttname"><a href="class_master_factory.html#a3c5c43c2d225e0df42f627643db42a88">MasterFactory::MasterFactory</a></div><div class="ttdeci">MasterFactory()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8cpp_source.html#l00167">DESIGNPATTERN_ComplexFactory.cpp:167</a></div></div>
<div class="ttc" id="aclass_master_factory_html_ad6711f403208af3a6b891e361000c219"><div class="ttname"><a href="class_master_factory.html#ad6711f403208af3a6b891e361000c219">MasterFactory::m_pInstance</a></div><div class="ttdeci">static MasterFactory * m_pInstance</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8h_source.html#l00227">DESIGNPATTERN_ComplexFactory.h:227</a></div></div>
<div class="ttc" id="aclass_master_factory_html_a7871cdd39707117647e62990baa041ac"><div class="ttname"><a href="class_master_factory.html#a7871cdd39707117647e62990baa041ac">MasterFactory::Instance</a></div><div class="ttdeci">static ComplexFactory * Instance()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8cpp_source.html#l00192">DESIGNPATTERN_ComplexFactory.cpp:192</a></div></div>
<div class="ttc" id="a_my_self_def_8h_html_a0be11ce2e33906806ac4e521781809c0"><div class="ttname"><a href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a></div><div class="ttdeci">#define DEBUG_PRINTF(fmt, args...)</div><div class="ttdef"><b>Definition:</b> <a href="_my_self_def_8h_source.html#l00025">MySelfDef.h:25</a></div></div>
<div class="ttc" id="aclass_warrior_factory_html_a2b535e9f091e1909b09f10bc98eeace2"><div class="ttname"><a href="class_warrior_factory.html#a2b535e9f091e1909b09f10bc98eeace2">WarriorFactory::m_pInstance</a></div><div class="ttdeci">static WarriorFactory * m_pInstance</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8h_source.html#l00158">DESIGNPATTERN_ComplexFactory.h:158</a></div></div>
<div class="ttc" id="aclass_priest_factory_html_a48dd860b89ac05ca336db62247da0c04"><div class="ttname"><a href="class_priest_factory.html#a48dd860b89ac05ca336db62247da0c04">PriestFactory::~PriestFactory</a></div><div class="ttdeci">~PriestFactory()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8cpp_source.html#l00254">DESIGNPATTERN_ComplexFactory.cpp:254</a></div></div>
<div class="ttc" id="a_product_def_8h_html_af4f386858b1730df6c103acb62cebe68adda08b98fdfa5c0222093ec202ec8422"><div class="ttname"><a href="_product_def_8h.html#af4f386858b1730df6c103acb62cebe68adda08b98fdfa5c0222093ec202ec8422">PROFESSION_MASTER</a></div><div class="ttdef"><b>Definition:</b> <a href="_product_def_8h_source.html#l00015">ProductDef.h:15</a></div></div>
<div class="ttc" id="aclass_complex_factory_html_a266cebf6b4dfd5cfc5c2365c94fb9348"><div class="ttname"><a href="class_complex_factory.html#a266cebf6b4dfd5cfc5c2365c94fb9348">ComplexFactory::ComplexFactory</a></div><div class="ttdeci">ComplexFactory()</div></div>
<div class="ttc" id="aclass_warrior_html"><div class="ttname"><a href="class_warrior.html">Warrior</a></div><div class="ttdef"><b>Definition:</b> <a href="_profession_8h_source.html#l00087">Profession.h:87</a></div></div>
<div class="ttc" id="a_product_def_8h_html_adb0cb8b72b82d01d05b82adbc6a38f2a"><div class="ttname"><a href="_product_def_8h.html#adb0cb8b72b82d01d05b82adbc6a38f2a">STATIC_CONST_STRING_PROFESSION</a></div><div class="ttdeci">static const string STATIC_CONST_STRING_PROFESSION[PROFESSION_ALL]</div><div class="ttdef"><b>Definition:</b> <a href="_product_def_8h_source.html#l00021">ProductDef.h:21</a></div></div>
<div class="ttc" id="aclass_master_factory_html"><div class="ttname"><a href="class_master_factory.html">MasterFactory</a></div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8h_source.html#l00161">DESIGNPATTERN_ComplexFactory.h:161</a></div></div>
<div class="ttc" id="aclass_warrior_factory_html_a9b3b4b66a0498639b0f927323f30237c"><div class="ttname"><a href="class_warrior_factory.html#a9b3b4b66a0498639b0f927323f30237c">WarriorFactory::Destroy</a></div><div class="ttdeci">static VOID Destroy()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8cpp_source.html#l00135">DESIGNPATTERN_ComplexFactory.cpp:135</a></div></div>
<div class="ttc" id="aclass_complex_factory_html"><div class="ttname"><a href="class_complex_factory.html">ComplexFactory</a></div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8h_source.html#l00015">DESIGNPATTERN_ComplexFactory.h:15</a></div></div>
<div class="ttc" id="aclass_complex_factory_html_a6769ba71051831e3fbb8e143c4e91377"><div class="ttname"><a href="class_complex_factory.html#a6769ba71051831e3fbb8e143c4e91377">ComplexFactory::SetComplexFactory</a></div><div class="ttdeci">VOID SetComplexFactory(PROFESSION_TYPE eProfession)</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8cpp_source.html#l00065">DESIGNPATTERN_ComplexFactory.cpp:65</a></div></div>
<div class="ttc" id="aclass_master_factory_html_a9de6375d6806755974f1ec856d782dcf"><div class="ttname"><a href="class_master_factory.html#a9de6375d6806755974f1ec856d782dcf">MasterFactory::Destroy</a></div><div class="ttdeci">static VOID Destroy()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8cpp_source.html#l00210">DESIGNPATTERN_ComplexFactory.cpp:210</a></div></div>
<div class="ttc" id="aclass_priest_factory_html_aa7979e42ec9f47af5d2822e153c6881e"><div class="ttname"><a href="class_priest_factory.html#aa7979e42ec9f47af5d2822e153c6881e">PriestFactory::m_pInstance</a></div><div class="ttdeci">static PriestFactory * m_pInstance</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8h_source.html#l00296">DESIGNPATTERN_ComplexFactory.h:296</a></div></div>
<div class="ttc" id="a_product_def_8h_html_af4f386858b1730df6c103acb62cebe68a2a1ccaa29202c017e27a632ce0b400a2"><div class="ttname"><a href="_product_def_8h.html#af4f386858b1730df6c103acb62cebe68a2a1ccaa29202c017e27a632ce0b400a2">PROFESSION_WARRIOR</a></div><div class="ttdef"><b>Definition:</b> <a href="_product_def_8h_source.html#l00014">ProductDef.h:14</a></div></div>
<div class="ttc" id="a_product_def_8h_html_af4f386858b1730df6c103acb62cebe68"><div class="ttname"><a href="_product_def_8h.html#af4f386858b1730df6c103acb62cebe68">PROFESSION_TYPE</a></div><div class="ttdeci">PROFESSION_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="_product_def_8h_source.html#l00011">ProductDef.h:11</a></div></div>
<div class="ttc" id="aclass_profession_html"><div class="ttname"><a href="class_profession.html">Profession</a></div><div class="ttdef"><b>Definition:</b> <a href="_profession_8h_source.html#l00012">Profession.h:12</a></div></div>
<div class="ttc" id="aclass_priest_factory_html_a5c2ff9a9f8cc3fdb8c6d73b083391937"><div class="ttname"><a href="class_priest_factory.html#a5c2ff9a9f8cc3fdb8c6d73b083391937">PriestFactory::PriestFactory</a></div><div class="ttdeci">PriestFactory()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___complex_factory_8cpp_source.html#l00242">DESIGNPATTERN_ComplexFactory.cpp:242</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
